package com.dp.ajaxupload.core;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

public class  UploadMonitor {
	//返回值是自定义Java Bean
	public static UploadInfo getUploadInfo() {
		HttpServletRequest req = ServletActionContext.getRequest();

		if (req.getSession().getAttribute("uploadInfo") != null)
			return (UploadInfo) req.getSession().getAttribute("uploadInfo");
		else
			return new UploadInfo();
	}
}
